/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ems.entity;

import java.util.List;
import java.util.Map;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 奖品管理Entity
 * @author zad
 * @version 2017-10-23
 */
public class Award extends DataEntity<Award> {
	
	private static final long serialVersionUID = 1L;
	
	// 和客户确认，奖品信息中不需要报名人，只有报名人电话即可
	// private String register;		// 报名人姓名
	private String awardFrom;	// 奖品来源 system：系统报名；onsite：现场报名
	
	private String mobile;		// 报名人联系电话
	private String joiner;		// 选手姓名
	
	private List<Map<String,String>> joinerList; //将选手姓名转换为list，用于批量插入报名信息
	
	private Course course;		// 课程编号
	
	private String groupType;		// 组别
	private String groupTypeName;		// 组别名称
	
	private String joinType;		// 参赛方式
	private String joinTypeName;		// 参赛方式名称
	
	private String bigCategory;		// 参赛大类
	private String bigCategoryName;		// 参赛大类名称
	
	private String smallCategory;		// 参赛小类
	private String smallCategoryName;		// 参赛小类名称
	
	private String school;		// 推选学校
	private String award;		// 奖品名称
	private String status;		// 领取状态
	
	private Double score;
	
	public Award() {
		super();
	}

	public Award(String id){
		super(id);
	}

	/*@Length(min=1, max=32, message="报名人姓名长度必须介于 1 和 32 之间")
	public String getRegister() {
		return register;
	}

	public void setRegister(String register) {
		this.register = register;
	}*/
	
	
	// @Length(min=1, max=32, message="报名人联系电话长度必须介于 0 和 32 之间")
	public String getMobile() {
		return mobile;
	}

	public String getAwardFrom() {
		return awardFrom;
	}

	public void setAwardFrom(String awardFrom) {
		this.awardFrom = awardFrom;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@Length(min=1, max=32, message="选手姓名长度必须介于 1 和 32 之间")
	public String getJoiner() {
		return joiner;
	}

	public void setJoiner(String joiner) {
		this.joiner = joiner;
	}
	
	
	public Course getCourse() {
		return course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	@Length(min=1, max=2, message="组别长度必须介于 1 和 2 之间")
	public String getGroupType() {
		return groupType;
	}

	public void setGroupType(String groupType) {
		this.groupType = groupType;
	}
	
	@Length(min=1, max=2, message="参赛方式长度必须介于 1 和 2 之间")
	public String getJoinType() {
		return joinType;
	}

	public void setJoinType(String joinType) {
		this.joinType = joinType;
	}
	
	// @Length(min=1, max=8, message="参赛大类长度必须介于 0 和 8 之间")
	public String getBigCategory() {
		return bigCategory;
	}

	public void setBigCategory(String bigCategory) {
		this.bigCategory = bigCategory;
	}
	
	// @Length(min=1, max=8, message="参赛小类长度必须介于 0 和 8 之间")
	public String getSmallCategory() {
		return smallCategory;
	}

	public void setSmallCategory(String smallCategory) {
		this.smallCategory = smallCategory;
	}
	
	@Length(min=1, max=64, message="推选学校长度必须介于 1 和 64 之间")
	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school;
	}
	
	@Length(min=1, max=32, message="奖品名称长度必须介于 1 和 32 之间")
	public String getAward() {
		return award;
	}

	public void setAward(String award) {
		this.award = award;
	}
	
	@Length(min=1, max=2, message="领取状态长度必须介于 1 和 2 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getGroupTypeName() {
		return groupTypeName;
	}

	public void setGroupTypeName(String groupTypeName) {
		this.groupTypeName = groupTypeName;
	}

	public String getJoinTypeName() {
		return joinTypeName;
	}

	public void setJoinTypeName(String joinTypeName) {
		this.joinTypeName = joinTypeName;
	}

	public String getBigCategoryName() {
		return bigCategoryName;
	}

	public void setBigCategoryName(String bigCategoryName) {
		this.bigCategoryName = bigCategoryName;
	}

	public String getSmallCategoryName() {
		return smallCategoryName;
	}

	public void setSmallCategoryName(String smallCategoryName) {
		this.smallCategoryName = smallCategoryName;
	}

	public List<Map<String, String>> getJoinerList() {
		return joinerList;
	}

	public void setJoinerList(List<Map<String, String>> joinerList) {
		this.joinerList = joinerList;
	}

	public Double getScore() {
		return score;
	}

	public void setScore(Double score) {
		this.score = score;
	}
	
}